
package com.zhitan.ems.app.doc.wrapper;
import com.zhitan.ems.app.doc.entity.EmsNewsEntity;
import com.zhitan.ems.app.doc.vo.EmsNewsVO;
import com.zhitan.ems.common.extra.utils.BeanUtil;
import com.zhitan.ems.framework.core.mp.base.BaseEntityWrapper;
  /**
 * 新闻资讯 包装类,返回视图层所需的字段
 * @author zhitan
 * 
 * @date 2025-09-19 22:52:51
 */
public class EmsNewsWrapper extends BaseEntityWrapper<EmsNewsEntity, EmsNewsVO>  {
    public static EmsNewsWrapper build() {
        return new EmsNewsWrapper();
    }
	@Override
	public EmsNewsVO entityVO(EmsNewsEntity emsNews) {
		if(emsNews==null) {
			return null;
		}
		EmsNewsVO emsNewsVO = BeanUtil.copy(emsNews, EmsNewsVO.class);
		return emsNewsVO;
	}

}
